#include"progressBar.h"


//v1
void progressBar()
{
    char Bar[NUM]={0};
    char s[]="|/-\\";
    int cnt=0;
    while(cnt<=TOP)
    {
        printf("[%-100s][%d%%][%c]\r",Bar,cnt,s[cnt%4]);
        fflush(stdout);
        usleep(50000);
        Bar[cnt++]=BODY;
    }
    printf("\n");
}
